import request from '../utils/request.js'

// 轮播banner
export const apiGetBanner = (data) => request('/banner', data)

// 推荐歌单
export const apiGetRecommendSongs = (limit) => request('/personalized', {limit})

// 新碟新歌
export const apiGetTopAlbum = (data) => request('/album/newest', data)

// 视频
export const apiGetRelatedVedio = (id) => request('/related/allvideo', {id})

// 视频页导航
export const apiGetGroupList = (data) => request('/video/group/list', data)

// 视频列表
export const apiGetVideoData = (id) => request('/video/group', {id})
export const apiGetVideoUrl = (data) => request('/video/url', data)

// 登录
export const apiLogin = (data) => request('/login', data)

// 用户详情
export const apiUserDetail = (uid) => request('/user/detail', {uid})

// 登出
export const apiLogout = (data) => request('/logout', data)

// 云村广场topic/detail/event/hot?actid=111551188   /hot/topic?limit=30&offset=30
export const apiCloudSquare = (limit, offset) => request('/hot/topic', {limit, offset})